import { Component } from '@angular/core';

@Component({
  selector: 'app-motion',
  templateUrl: './motion.component.html',
  styles: [
    `
      .el {
        background: #eee;
        width: 36px;
        height: 36px;
      }
    `,
  ],
})
export class MotionComponent {
  num: number = 999;

  change(tag) {
    if (tag === 'up') {
      this.num += 1;
    }
    if (tag === 'down') {
      this.num -= 1;
    }
  }
}
